<?php
    $user = $this->controller->getUser();
    
    $vote_info = $this->layout()->vote_info;
    $vote_list = array();
    foreach($vote_info as $thread_id=>$thread){
        $now = time();
        foreach($thread as $phase_id=> $phase){
            if($phase->view_enable==1){
                $vname = $phase->thread_name;
                $vid = $thread_id."_".$phase_id;
                $vote_list[] = array("name"=>$vname, "votephoto_category"=>$phase->votephoto_category, "vid"=>$vid, "thid"=>$thread_id, "pid"=>$phase_id);
            }
        }
        
    }
?><!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<title><?php echo ($this->layout()->title!="" ? $this->escape($this->layout()->title) : "") ?></title>
<meta http-equiv="Content-Type" content="text/html; charset=utf-8">
<meta name="generator" content="">
    <script type="text/javascript">
      
        var fadeimages1=new Array()
        var fadeimages2=new Array()
        <?php 
        $totalImg = 18;
        for($i=0; $i<$totalImg; $i++){
        ?>
        fadeimages1[<?php echo $i;?>]=["<?php echo $this->layout()->spath;?>/slide/horizon-slide/<?php echo str_pad($i+1, 3, '0', STR_PAD_LEFT);?>.jpg", "", ""]
        <?php
        }
        ?>
        
        <?php 
        $totalImg = 11;
        for($i=0; $i<$totalImg; $i++){
        ?>
        fadeimages2[<?php echo $i;?>]=["<?php echo $this->layout()->spath;?>/slide/vertical-slide/<?php echo str_pad($i+1, 3, '0', STR_PAD_LEFT);?>.jpg", "", ""]
        <?php
        }
        ?>

    </script>
    <!--Import CSS files:-->
    <link href="<?php print $this->layout()->spath; ?>/css/style.css" rel="stylesheet" type="text/css" />       
    <!--End css files-->
    <script type="text/javascript" src="<?php echo EVENT_STATIC_SERVER;?>/js/swfobject.js"></script>
    <script type="text/javascript" src="<?php echo EVENT_STATIC_SERVER;?>/js/jquery.js"></script>
    <script type="text/javascript" src="<?php echo EVENT_STATIC_SERVER;?>/js/event_cover_comment.js"></script>
    <script type="text/javascript" src="<?php echo EVENT_STATIC_SERVER;?>/js/fadeimage.js"></script>

   <!--[if lt IE 7]>
        <script defer type="text/javascript" src="<?php echo EVENT_STATIC_SERVER;?>/js/pngfix.js"></script>
        <link href="<?php echo EVENT_STATIC_SERVER;?>/css/ie6fix.css" rel="stylesheet" type="text/css" />
    <![endif]-->
</head>
<body>
<!--Menu tamtay:-->
<div class="hdrWrap">
   <div class="hdr">
      <div class="clear"> <a href="http://www.tamtay.vn" class="logo" title="Trang chủ tamtay.vn"><img src="<?php echo $this->layout()->spath; ?>/images/spacer.gif" alt="Tamtay.vn" /></a>
        <?php
        if ($user->uid>0)
        {
        ?>      
        <div class="personal"> <span class="persText">Chào</span> 
        <div class="persName" onmouseout="document.getElementById('persPlus').style.visibility='hidden'" onmouseover="document.getElementById('persPlus').style.visibility='visible'">
            <div id="persPlus" class="tt_ddmenu">
                <a href="http://www.tamtay.vn/myprofile/<?php echo $user->uid?>/edit/basic">Thông tin cá nhân</a>
                <a href="http://www.tamtay.vn/mymessage/inbox">Tin nhắn</a>
            </div>
            <span><a href="http://tamtay.vn/home/<?php echo $user->name?>"><?php echo $user->name?></a></span>
        </div>
        <a href="<?php echo IDS_LOGOUT_URL;?>" onclick="return confirm('Bạn chắc chắn thoát ra')" class="persOut">Thoát</a> </div>
        <?php
        }
        ?>
        <div class="clearThis"></div>
      </div>
      <div class="hdrBottom">
          <!--Start: Navigation-->
          <ul class="mainNav">
            <li><a href="http://www.tamtay.vn/home">Nhà&nbsp;tôi</a></li>        
            <li><a href="http://video.tamtay.vn">Video</a></li>
            <li><a href="http://photo.tamtay.vn">Ảnh</a></li>
            <li><a href="http://music.tamtay.vn">Nhạc</a></li>
            <li><a href="http://blog.tamtay.vn">Blog</a></li>
            <li><a href="http://applications.tamtay.vn">Game</a></li>
            <li><a href="http://tcoin.tamtay.vn">Ngân hàng</a></li>
            <li><a href="http://tads.tamtay.vn">Quảng cáo</a></li>
            <li onmouseout="document.getElementById('navPlus').style.visibility='hidden'" onmouseover="document.getElementById('navPlus').style.visibility='visible'">
              <div id="navPlus" class="tt_ddmenu">
                <a href="http://www.tamtay.vn/group/forum">Diễn đàn</a>
                <a href="http://www.tamtay.vn/event">Sự kiện</a>
                <a href="http://www.tamtay.vn/group">Nhóm</a>
                <a href="http://www.tamtay.vn/bookmark/home">Link hay</a>
                <a href="http://www.tamtay.vn/network/home">Cộng đồng</a>
                <a href="http://chat.tamtay.vn/chat">Chat</a>
                <a href="http://chat.tamtay.vn">Tiện ích</a>
              </div>
              <a href="#" class="itemMore">Thêm</a>
            </li>
          </ul>  
          
          <div class="mainNavRight"> <a href="http://support.tamtay.vn/mboard">Hỗ trợ</a> </div>
            <?php
              if ($user->uid <= 0)
              {
              ?>
          <div class="login"><a href="<?php echo IDS_LOGIN_URL;?>">Đăng nhập</a> <span>|</span> 
              <a href="<?php echo IDS_REGISTER_URL;?>">Đăng ký</a> &nbsp;|</div>
            <?php } ?>
          
          <!--End: Navigation-->
          <div class="clearThis"></div>
    </div>
   </div>
</div>
<!--End Menu tamtay:-->
<div id="container">
   <!--Header:-->
   <div id="header" class="page-center">
      <!--Banner:-->
      <div id="banner">
         <div class="cn_block">
            <h1><em><img class="png company_name" alt="Đám cưới của tôi 2011" src="<?php echo $this->layout()->spath;?>/images/b313ba637329525.png"></em><b></b></h1>
         </div>
         <div class="mattblackmenu main_menu" id="ddtopmenubar">
            <div class="de_1 png">
               <table width="100%" cellpadding="0" cellspacing="0">
                  <tr>
                     <td width="50%"><div class="de_0_1 png">
                           <div class="de_0_3 png"></div>
                        </div></td>
                     <td width="50%"><div class="de_0_2 png">
                           <div class="de_0_3 png"></div>
                        </div></td>
                  </tr>
               </table>
            </div>
            <div class="de_2">
               <ul>
                    <li class="<?=($this->layout()->menu_active=='home'?'active ':'')?>first"><a href="http://www.tamtay.vn/event/<?php echo $this->layout()->short_cut; ?>" title="Trang chủ">Trang chủ</a></li>
                    <li class="<?=($this->layout()->menu_active=='desc'?'active ':'')?>"><a href="http://www.tamtay.vn/event/<?php echo $this->layout()->short_cut; ?>/desc">Giới thiệu</a></li>
                    <?php 
                        for($i=0; $i<count($vote_list); $i++){
                            $vote = $vote_list[$i];
                            if($vote["votephoto_category"] > 0){
                            ?>
                        <li class="<?=($this->layout()->menu_active=='vote_'.$vote["thid"].'_'.$vote["pid"]?'active':'')?>"><a href="http://photo.tamtay.vn/category/browse/<?php echo $vote["votephoto_category"];?>"><?=$vote["name"];?></a>
                        </li>
                        <?php 
                            }else {?>
                        <li class="<?=($this->layout()->menu_active=='vote_'.$vote["thid"].'_'.$vote["pid"]?'active':'')?>"><a href="/event/<?php echo $this->layout()->short_cut; ?>/votedlist/<?php echo $vote["thid"]."/".$vote["pid"];?>"><?=$vote["name"];?></a>
                        </li>
                        <?php 
                            } // End of if 
                        }
                        ?>
                    <li><a href="/event/<?php echo $this->layout()->short_cut; ?>#mark_news"> Tin tức </a>
                    </li>
                    
                    <li class="last"><a href="/event/<?php echo $this->layout()->short_cut; ?>#old_event"> Theo dòng sự kiện </a></li>
                    
                </ul>
            </div>
         </div>
      </div>
   </div>
   <!--End Header:-->
   <div class="clear"></div>
   <div class="bg-content">
        <div class="content-page">
            <?php echo $this->layout()->content;?>
            <div class="clear"></div>
        </div>
   </div>
   <div class="clear"></div>
</div>

<!--Start: Bottom-->
<div class="footerWrap">
  <div class="footer">
    <div class="footerLink">
        <a title="Bản tin T" href="http://blog.tamtay.vn/T.Vongtaylonmai/blog">Bản tin T</a> <span>|</span> 
        <a title="Giới thiệu" href="http://www.tamtay.vn/group/detail/164">Giới thiệu</a> <span>|</span> 
        <a title="Điều khoản sử dụng" href="http://support.tamtay.vn/info/13046">Điều khoản sử dụng</a> <span>|</span> 
        <a title="Chính sách riêng tư" href="http://support.tamtay.vn/info/13047">Chính sách riêng tư</a> <span>|</span> 
        <a title="Quảng cáo" href="http://support.tamtay.vn/adv/adv.php">Quảng cáo</a> <span>|</span> 
        <a title="Tuyển dụng" href="http://support.tamtay.vn/info/13045">Tuyển dụng</a> <span>|</span> 
        <a title="Góp ý" href="http://support.tamtay.vn/advice">Góp ý</a> <span>|</span> 
        <a title="Liên hệ" href="http://support.tamtay.vn/info/13044">Liên hệ</a> <span>|</span> 
        <a title="For Investors" href="http://support.tamtay.vn/info/13048">For Investors</a> <span>|</span>
        <a title="For Developers" href="http://developer.tamtay.vn">For Developers</a> <span>|</span>        
        <a title="Đầu trang" href="#">Đầu trang</a>
    </div>
    <div class="copyRight">Giấy phép ICP của Bộ Thông tin và Truyền thông số: 531/GP-CBC | Ghi rõ nguồn &quot;Tamtay.vn&quot; khi bạn phát hành lại thông tin từ website này. </div>
  </div>
</div>
<!--End: Bottom-->

</body>
</html>